<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="author" content="wangyuguo">
<title>选择未绑定的司机</title>
<script type="text/javascript" src="../script/common.js"></script>

<script type="text/javascript">
	var qt = null;
	var orgUserId = null;
	function load() {
		createTable();
		qt.showTable();
		orgUserId = getPara("orgUserId");
	}

	/**查询部分**/
	//生成表格，创建QueryTable对象
	function createTable() {
		var columns = []
		columns[0] = {type:"checkbox"}
		qt = new QueryTable("find_bind_drivers", "searchForm", "datalist", columns);
	}

	function onSave() {
		var ids = qt.getBoxValue();
		if (!ids) {showError("请选择一个未绑定单位的司机！");return;}
		DWR.call("zhgjService.bindCardUser",orgUserId,ids.split(","),function(){
			showInformation("司机与单位绑定成功！")
			dialogBackValue(true);
		})
	}

</script>
</head>
<body class="body" onload="load()">
<div id="listview"><!--查询条件form-->
<div class="searchForm">
<form id="searchForm" name="searchForm">
<table cellSpacing="0" cellPadding="4" width="100%" border="0">
	<tr>
		<td><label>卡&nbsp;&nbsp;&nbsp;&nbsp;号</label> <input type="text"
			name="asn" maxlength="20"></td>
		<td>
		<button type="button" onclick="qt.showTable()">查 询</button>
		</td>
	</tr>
</table>
</form>
</div>
<div id="datalist"></div>
</div>
</body>
</html>
